package com.h5lib.nchuoffice.app.action;

import com.h5lib.nchuoffice.CacheManager;
import com.h5lib.nchuoffice.app.cfg.Config;
import com.h5lib.server.ModelMap;
import com.h5lib.server.annotation.Controller;
import com.h5lib.server.annotation.RequestMapping;

import fi.iki.elonen.NanoHTTPD.IHTTPSession;
import fi.iki.elonen.NanoHTTPD.Response;

@Controller
public class HomeAction {
	
	@RequestMapping(value="/home.html")
	public String home(IHTTPSession session, Response response ,ModelMap modelMap){
		Object userInfo = CacheManager.getCache(Config._CACHE_USERINFO);
		modelMap.put("userInfo", userInfo);
		return "/ui/home.html";
	}
}